package server;

import java.io.IOException;
import java.io.ObjectInputStream;
import java.io.ObjectOutputStream;
import java.net.Socket;
import java.net.UnknownHostException;
import java.util.Hashtable;

public class Cliente {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		try {
			Socket s=new Socket("localhost",500);
			ObjectOutputStream d=new ObjectOutputStream(s.getOutputStream() );
			Hashtable<String,String> info=new Hashtable<String,String>();
			info.put("nombre", "Jose");
			info.put("apellido", "Di Meglio");
			info.put("ip", "198.564.123.456");
			info.put("nick", "rockydm");
			d.writeObject(info);
		} catch (UnknownHostException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		} catch (IOException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}

	}

}
